package RPPM.service.Impl;

import RPPM.dao.StuDao;
import RPPM.dao.impl.StuDaoImpl;
import RPPM.domain.*;
import RPPM.service.StuService;
import RPPM.service.TeaService;

import java.util.List;
import java.util.Map;

public class StuServiceImpl implements StuService {

    private StuDao studao = new StuDaoImpl();

    @Override
    public boolean savePayment(Payment payment,int stu_id) {
        return studao.savePayment(payment,stu_id);
    }

    @Override
    public List<Map<String, Object>> findCoursesByname(int stuid, String searchText) {
        return studao.findCoursesByname(stuid, searchText);
    }

    @Override
    public List<Map<String, Object>> findCoursesNotPaid(int stu_id) {
        return studao.findCoursesNotPaid(stu_id);
    }

    @Override
    public List<Map<String, Object>> findCoursesNotPaidEX(int stu_id, String str) {
        return studao.searchByCouNameEX(stu_id, str);
    }

    @Override
    public List<Map<String, Object>> findCoursesNotSign(int stu_id) {
        return studao.findCoursesNotSign(stu_id);
    }

    @Override
    public List<Map<String, Object>> findCoursesNotAdvice(int stu_id) {
        return studao.findCoursesNotAdvice(stu_id);
    }

    @Override
    public boolean saveCourseSign(int stu_id, Map<String, Object> pay) {
        return studao.saveCourseSign(stu_id,pay);
    }

    @Override
    public boolean saveCourseAdvice(int stu_id, Map<String, Object> advice, String feedback) {
        return studao.saveCourseAdvice(stu_id, advice, feedback);
    }

    @Override
    public List<Map<String, Object>> findCourses(int stu_id) {
        return studao.findCourses(stu_id);
    }

}
